package cn.lanqiao.demo.service.impl;

import cn.lanqiao.demo.dao.CheckDao;
import cn.lanqiao.demo.dao.VaccineDao;
import cn.lanqiao.demo.service.VaccineService;
import cn.lanqiao.demo.vo.StudentVaccineVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VaccineServiceImpl implements VaccineService {
    private VaccineDao vaccineDao;

    @Autowired
    public void setVaccineDao(VaccineDao vaccineDao) {
        this.vaccineDao = vaccineDao;
    }


    @Override
    public List<StudentVaccineVo> getInoculated(int inoculated) {
        return vaccineDao.getInoculated(inoculated);
    }

    @Override
    public Integer getCount(int inoculated) {
        return vaccineDao.getCount(inoculated);
    }
}
